//
//  AppDelegate.m
//  Leisure
//
//  Created by xalo on 16/6/28.
//  Copyright © 2016年 蓝鸥科技有限公司西安分公司. All rights reserved.
//

#import "AppDelegate.h"

@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    [NSThread sleepForTimeInterval:3.0];
    
    [[UINavigationBar appearance]setTintColor:[UIColor grayColor]];
    //创建左菜单控制器
    MenuViewController *menuVC = [MenuViewController new];
    
    //设置左菜单显示的内容
    menuVC.titleArray = @[@"阅读",@"电台",@"话题",@"良品"];
    menuVC.vcArray = @[[ReadingViewController new],[[RadioViewController alloc]initWithNibName:@"RadioViewController" bundle:nil],[[TopicViewController alloc]initWithNibName:@"TopicViewController" bundle:nil],[[GoodsViewController alloc]initWithNibName:@"GoodsViewController" bundle:nil]];
    
    self.window.rootViewController = [[DrawViewController alloc]initWithMenuViewController:menuVC RightViewController:menuVC.vcArray[0]];
    [self.window makeKeyAndVisible];
    
    
    
    return YES;
}

- (void)applicationWillResignActive:(UIApplication *)application {
 



}

- (void)applicationDidEnterBackground:(UIApplication *)application {
}

- (void)applicationWillEnterForeground:(UIApplication *)application {
}

- (void)applicationDidBecomeActive:(UIApplication *)application {
}

- (void)applicationWillTerminate:(UIApplication *)application {
}

@end
